unit uGeneric;

interface

uses
  Classes, Forms,StdCtrls;

type
  PForm = ^TForm;
  PComboBox = ^TComboBox;

  procedure CarregaComboBox(aForm: PForm; aComboBox: PComboBox);

implementation

procedure CarregaComboBox(aForm: PForm; aComboBox: PComboBox);
var
  i: Integer;
begin
  for i := 0 to Pred(aForm.ComponentCount) do
    if aForm.Components[i] is TLabel then
      aComboBox.Items.Add(TLabel(aForm.Components[i]).Caption);
end;

end.
